//
// Created by 徐套 on 2023/10/19.
//
#pragma once
#include <string>

#define MAXCARNUM 5

struct CarState{
    CarState(){}

    CarState(std::string name, double x, double y, float v, float h, float thr, float brake, float st){
        strcpy(this->car_name, name.c_str());
        this->x = x;
        this->y = y;
        this->v = v;
        this->h = h;
        this->thr = thr;
        this->brake = brake;
        this->st = st;
    }

    char car_name[3];
    double x,y;
    float v,h,thr,brake,st;
};

struct AllCar{

    int num;
    CarState all[MAXCARNUM];
};